package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.facade;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/22 14:18
 */
public class Test {
    public static void main(String[] args) {
        PointsGift pointsGift  = new PointsGift("体恤");
        GiftExchangeService giftExchangeService = new GiftExchangeService();

        giftExchangeService.setPonitsPaymentService(new PonitsPaymentService());
        giftExchangeService.setQualifyService(new QualifyService());
        giftExchangeService.setShippingService(new ShippingService());

        giftExchangeService.giftExchange(pointsGift);
    }
}
